package com.dz.Incubator.controller;

import com.dz.Incubator.entity.InvokeResult;
import com.dz.Incubator.entity.OfficeEnvEntity;
import com.dz.Incubator.service.OfficeEnvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/api/a/zx/officeEnv")
@RestController
public class OfficeEnvController {

    @Autowired
    private OfficeEnvService officeEnvService;


    @RequestMapping(value = "getAll", method = RequestMethod.GET)
    public InvokeResult<List<OfficeEnvEntity>> getAll() {
        return InvokeResult.success(officeEnvService.getAll());
    }

}
